﻿using System;

namespace Gonte.Types
{
    public class DynamicFieldInfo
    {
        #region Constructors

        public DynamicFieldInfo(string name, Object initialValue)
        {
            ExceptionThrower.ThrowWhenNull("name", name);

            name_ = name;
            initialValue_ = initialValue;
        } 

        #endregion

        #region Properties

        public string Name
        {
            get { return name_; }
            //set { name_ = value; }
        }

        public Object InitialValue
        {
            get { return initialValue_; }
            //set { initialValue_ = value; }
        }

        #endregion

        #region Fields

        private readonly string name_;
        private readonly Object initialValue_; 

        #endregion
    }
}
